
public class ConnectionDetails {
	public String hostNameOrIP;
	public int port;
	public int hopCount;
	
	public ConnectionDetails()
	{
		this.hostNameOrIP = null;
		this.port = -1;
	}
	
	public ConnectionDetails(String hostNameOrIP, int port)
	{
		this.hostNameOrIP = hostNameOrIP;
		this.port = port;
	}
	
	public boolean equals(ConnectionDetails compareTo)
	{
		return this.hostNameOrIP.equals(compareTo.hostNameOrIP)
			&& this.port == compareTo.port;
	}
}
